package com.xiaoyy.core.dict.gateway.req;

import com.xiaoyy.core.common.vo.BaseVO;
import com.xiaoyy.core.dict.gateway.validators.DictValidators;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;

/**
 * 下拉框请求
 * */
public class SelectReq extends BaseVO {
    /**
     * 下拉字段 单个
     * */
    @NotBlank(groups = {
            DictValidators.GetDict.class
    },message = "数据字字典字段（dictField）不能为空")
    @ApiModelProperty(notes = "数据字字典字段 单个")
    private String dictField;
    /**
     * 下拉字段 批量
     * */
    @NotBlank(groups = {
            DictValidators.GetDictBatch.class
    },message = "数据字字典字段（dictFields）不能为空")
    @ApiModelProperty(notes = "数据字字典字段 批量")
    private String dictFields;

    public String getDictField() {
        return dictField;
    }

    public void setDictField(String dictField) {
        this.dictField = dictField;
    }

    public String getDictFields() {
        return dictFields;
    }

    public void setDictFields(String dictFields) {
        this.dictFields = dictFields;
    }
}
